


....................X0---Overview
....................X1---Code Breakdown
....................X2---INT Patch parameters
....................X3---Damage Variables
....................X4---Hit % Variables
....................X5---
....................X6---
....................X7---




******************************************************---X0---***********************************************************
*************************************************************************************************************************

_____________________________________________________-Overview-__________________________________________________________
_________________________________________________________________________________________________________________________



..........This section is exclusive for adjusting various options for certain Spells and Effects.
..........If something isnt here, its in the Magic section, or vice versa.



******************************************************---X1---***********************************************************
*************************************************************************************************************************

__________________________________________________-Code Breakdown-_______________________________________________________
_________________________________________________________________________________________________________________________



..........Code Breakdown


33916.....b906: 20-F4-B8.....JSR.....$b8f4------w[1] = Spell Effectivity
33919.....b909: A2-XX........LDX.....-----------INT Contribution to Spell Damage
3391b.....b90b: 20-EC-AF.....JSR.....$afec
3391e.....b90e: AD-78-68.....LDA.....$6878------Current Spell Element
33921.....b911: 2D-77-68.....AND.....$6877------Target Elemental Resistance
33924.....b914: F0-06........BEQ.....+$06
33926.....b916: 4E-59-68.....LSR.....$6859------w[1] /= 2
33929.....b919: 6E-58-68.....ROR.....$6858
3392c.....b91c: AD-78-68.....LDA.....$6878------Current Spell Element
3392f.....b91f: 2D-76-68.....AND.....$6876------Target Elemental Weakness
33932.....b922: F0-15........BEQ.....+$15
33934.....b924: A2-01........LDX.....#$01
33936.....b926: A0-02........LDY.....#$02
33938.....b928: 20-4D-AF.....JSR.....$af4d------w[Y] = w[X]
3393b.....b92b: AD-26-61.....LDA.....$6126------Something to do with Spell Element
3393e.....b92e: 4C-EE-F2.....JMP.....$f2ee
33941.....b931: A9-01........LDA.....#$01
33942.....b932: A8...........TAY
33944.....b934: A2-02........LDX.....#$02
33946.....b936: 20-7B-AE.....JSR.....$ae7b------w[A] = w[X] + w[Y]
33949.....b939: AE-58-68.....LDX.....$6858
3394c.....b93c: AD-59-68.....LDA.....$6859
3394f.....b93f: F0-04........BEQ.....+$04-------If changed to 05, only max damage amount shown if under 510*
33951.....b941: A2-FF........LDX.....#$ff-------If changed to FE, max damage will exceed 1020*
33953.....b943: A9-00........LDA.....#$00
33955.....b945: 20-5D-AE.....JSR.....$ae5d------A = RND (A .. X)
33958.....b948: AA...........TAX
33959.....b949: A9-01........LDA.....#$01-------If changed to 02, only minimum damage amounts shown*
3395b.....b94b: 20-DD-AE.....JSR.....$aedd------w[A] = clamp(w[A] + X)
3395e.....b94e: 20-AF-B8.....JSR.....$b8af
33961.....b951: B0-06........BCS.....+$06
33963.....b953: 0E-58-68.....ASL.....$6858
33966.....b956: 2E-59-68.....ROL.....$6859
33969.....b959: A9-12........LDA.....#$12-------HP = HP - damage
3396b.....b95b: AA...........TAX
3396c.....b95c: A0-01........LDY.....#$01
3396e.....b95e: 20-AC-AE.....JSR.....$aeac------w[A] = w[X] - w[Y]
33971.....b961: 4C-CD-B0.....JMP.....$b0cd
33974.....b964: AD 6D 68.....LDA.....$686d
33977.....b967: 29 01........AND.....#$01
33979.....b969: F0 01........BEQ.....+$01
3397b.....b96b: 60...........RTS



32ffc.....20-68-B6.....JSR---$b668
32fff.....AD-73-68.....LDA---$6873
33002.....20-09-AE.....JSR---$ae09
33005.....8E-5B-68.....STX---$685b
33008.....A2-XX........LDX......................INT Divisor
3300a.....4E-5B-68.....LSR---$685b
3300d.....6A...........ROR
3300e.....CA...........DEX
3300f.....D0-F9........BNE---+$f9
33011.....8D-5A-68.....STA---$685a
33014.....E8...........INX
33015.....8A...........TXA
33016.....A0-02........LDY---#$02
33018.....20-7B-AE.....JSR---$ae7b



******************************************************---X2---***********************************************************
*************************************************************************************************************************

______________________________________________-INT Patch parameters-_____________________________________________________
_________________________________________________________________________________________________________________________



33009:05---INT Adjustment Divisor [INT/32]

3391a:08---INT Contribution to Spell Damage:  [8*INT/32]
33952:fe---Damage Range 
3397d:08---INT Contribution to Healing Magic: [8*INT/32]
3398e:00---Base Heal Spell Doubling Chance

338c0:80---Base Spell Hit Chance: 128
338af:4a---INT Contribution to Spell Hit Chance: [INT/2]
338d0:40---Elemental Weakness Bonus to Hit Chance: 64
338dd:80---Elemental Resistance Penalty to Hit Chance: 128

33a57:02---INT Contribution to FOG:  [2*INT/32]
33a5e:04---INT Contribution to LOCK: [4*INT/32]
33a65:04---INT Contribution to INVS: [4*INT/32]
33a50:08---INT Contribution to FEAR: [8*INT/32]
33a82:02---INT Contribution to SABR Damage: [2*INT/32]
33a7a:04---INT Contribution to SABR Hit%:   [4*INT/32]
339f2:20---INT Bonus to Negative Effect 2 Spells: [32/32]
-----------INT Contribution to Invoked Weapons/Armors: None.......???

3374a/4c---Enemy INT: [MagDef/8]

32300-Player Poison: 20
3227b-Enemy Poison: 20
32295-Enemy Regeneration: 25


331ff------SLEP Waking Threshold: 254 HP


333fe/ff---MUTE Prevents Magic and Invoked Weapons/Armors

00 d0 = MUTE only prevents Magic
02 d0 = MUTE only prevents Item
01 d0 = MUTE only prevents Drink

01 f0 = MUTE prevents Magic & Item
02 f0 = MUTE prevents Magic & Drink
00 f0 = MUTE prevents Drink & Item


-------------------------------------------------------------------------------------------------------------------------


3ebc5/0c--FAST Stacking Max

..........Unlike in the original game, you can set how many times FAST can be used for several different levels.
..........Each time it is used, the number of hits will increase by 1.
..........For how many times FAST can be used, the byte value is 1 less. 02 means it can be used once. 
..........The level you choose will be equal. 10 = level 16


3ebcd- # of times FAST can be used for levels 1-15.   Currently 02 = 1 time

3ebc9- Level check for next increase of max stacking. Currently level 16

3ebd9- # of times FAST can be used for levels 16-23.  Currently 03 = 2 times

3ebd5- Level check for next increase of max stacking. Currently level 24

3ebe5- # of times FAST can be used for levels 24-31.  Currently 04 = 3 times

3ebe1- Level check for next increase of max stacking. Currently level 32

3ebf1- # of times FAST can be used for levels 32-39.  Currently 05 = 4 times

3ebed- Level check for next increase of max stacking. Currently level 40

3ebfd- # of times FAST can be used for levels 40-47.  Currently 06 = 5 times

3ebf9- Level check for next increase of max stacking. Currently level 48

3ec05- # of times FAST can be used for levels 48-50.  Currently 07 = 6 times


-------------------------------------------------------------------------------------------------------------------------


3390e:09-HARM: Creature Types

339b4:00-CUR4: Cures Statuses


..Reference..............Category..........(08)-Cure Status Ailment
...[G][K]............[Evil...][Were...].........[Death..][Stun...]
...[H][L]............[Dragon.][Water..].........[Stone..][Sleep..]
...[I][M]............[Giant..][Mage...].........[Poison.][Mute...]
...[J][N]............[Undead.][Regen..].........[Dark...][Conf...]


..........All the Checkbox Options follow the same byte order, so here is the easiest way to find the option you want.
..........At the top of the page in Notepad Options, go to (Edit), then choose (Find), and then type in the letters that
..........correspond to your choice(s). Im using G-N because 0-9 and A-F are used in all the hex locations.
..........Make sure you type in the letters like this, g/h/i, ect. Capitol/noncapitol doesnt matter, the / does. 


00-None...01-G...02-H...03-G/H...04-I...05-G/I...06-H/I...07-G/H/I...08-J...09-G/J...0a-H/J...0b-G/H/J...0c-I/J..0d-G/I/J
0e-H/I/J...0f-G/H/I/J...10-K...11-G/K...12-H/K...13-G/H/K...14-I/K...15-G/I/K...16-H/I/K...17-G/H/I/K...18-J/K...19-G/J/K
1a-H/J/K....1b-G/H/J/K....1c-I/J/K....1d-G/I/J/K...1e-H/I/J/K...1f-G/H/I/J/K...20-L...21-G/L...22-H/L...23-G/H/L...24-I/L
25-G/I/L....26-H/I/L....27-G/H/I/L....28-J/L....29-G/J/L....2a-H/J/L....2b-G/H/J/L....2c-I/J/L....2d-G/I/J/L...2e-H/I/J/L
2f-G/H/I/J/L....30-K/L....31-G/K/L...32-H/K/L...33-G/H/K/L...34-I/K/L...35-G/I/K/L...36-H/I/K/L...37-G/H/I/K/L...38-J/K/L
39-G/J/K/L....3a-H/J/K/L....3b-G/H/J/K/L....3c-I/J/K/L....3d-G/I/J/K/L....3e-H/I/J/K/L....3f-G/H/I/J/K/L....40-M...41-G/M
42-H/M....43-G/H/M....44-I/M....45-G/I/M....46-H/I/M....47-G/H/I/M...48-J/M...49-G/J/M...4a-H/J/M...4b-G/H/J/M...4c-I/J/M
4d-G/I/J/M....4e-H/I/J/M....4f-G/H/I/J/M...50-K/M...51-G/K/M...52-H/K/M...53-G/H/K/M...54-I/K/M...55-G/I/K/M...56-H/I/K/M
57-G/H/I/K/M...58-J/K/M...59-G/J/K/M...5a-H/J/K/M...5b-G/H/J/K/M..5c-I/J/K/M...5d-G/I/J/K/M..5e-H/I/J/K/M..5f-G/H/I/J/K/M
60-L/M....61-G/L/M....62-H/L/M....63-G/H/L/M....64-I/L/M...65-G/I/L/M...66-H/I/L/M...67-G/H/I/L/M...68-J/L/M...69-G/J/L/M
6a-H/J/L/M...6b-G/H/J/L/M...6c-I/J/L/M...6d-G/I/J/L/M...6e-H/I/J/L/M...6f-G/H/I/J/L/M...70-K/L/M...71-G/K/L/M..72-H/K/L/M
73-G/H/K/L/M....74-I/K/L/M....75-G/I/K/L/M....76-H/I/K/L/M....77-G/H/I/K/L/M....78-J/K/L/M....79-G/J/K/L/M...7a-H/J/K/L/M
7b-G/H/J/K/L/M....7c-I/J/K/L/M....7d-G/I/J/K/L/M....7e-H/I/J/K/L/M...7f-G/H/I/J/K/L/M...80-N...81-G/N...82-H/N...83-G/H/N
84-I/N...85-G/I/N...86-H/I/N...87-G/H/I/N...88-J/N...89-G/J/N...8a-H/J/N...8b-G/H/J/N...8c-I/J/N...8d-G/I/J/N..8e-H/I/J/N
8f-G/H/I/J/N....90-K/N....91-G/K/N...92-H/K/N...93-G/H/K/N...94-I/K/N...95-G/I/K/N...96-H/I/K/N...97-G/H/I/K/N...98-J/K/N
99-G/J/K/N....9a-H/J/K/N....9b-G/H/J/K/N....9c-I/J/K/N...9d-G/I/J/K/N...9e-H/I/J/K/N...9f-G/H/I/J/K/N...a0-L/N...a1-G/L/N
a2-H/L/N...a3-G/H/L/N...a4-I/L/N...a5-G/I/L/N...a6-H/I/L/N...a7-G/H/I/L/N..a8-J/L/N..a9-G/J/L/N..aa-H/J/L/N..ab-G/H/J/L/N
ac-I/J/L/N...ad-G/I/J/L/N...ae-H/I/J/L/N...af-G/H/I/J/L/N...b0-K/L/N...b1-G/K/L/N...b2-H/K/L/N...b3-G/H/K/L/N..b4-I/K/L/N
b5-G/I/K/L/N....b6-H/I/K/L/N....b7-G/H/I/K/L/N...b8-J/K/L/N...b9-G/J/K/L/N...ba-H/J/K/L/N...bb-G/H/J/K/L/N...bc-I/J/K/L/N
bd-G/I/J/K/L/N....be-H/I/J/K/L/N....bf-G/H/I/J/K/L/N....c0-M/N...c1-G/M/N...c2-H/M/N...c3-G/H/M/N...c4-I/M/N...c5-G/I/M/N
c6-H/I/M/N....c7-G/H/I/M/N...c8-J/M/N...c9-G/J/M/N...ca-H/J/M/N...cb-G/H/J/M/N...cc-I/J/M/N...cd-G/I/J/M/N...ce-H/I/J/M/N
cf-G/H/I/J/M/N...d0-K/M/N...d1-G/K/M/N...d2-H/K/M/N..d3-G/H/K/M/N..d4-I/K/M/N..d5-G/I/K/M/N..d6-H/I/K/M/N..d7-G/H/I/K/M/N
d8-J/K/M/N...d9-G/J/K/M/N...da-H/J/K/M/N...db-G/H/J/K/M/N..dc-I/J/K/M/N..dd-G/I/J/K/M/N..de-H/I/J/K/M/N..df-G/H/I/J/K/M/N
e0-L/M/N...e1-G/L/M/N...e2-H/L/M/N...e3-G/H/L/M/N...e4-I/L/M/N...e5-G/I/L/M/N...e6-H/I/L/M/N...e7-G/H/I/L/M/N..e8-J/L/M/N
e9-G/J/L/M/N...ea-H/J/L/M/N...eb-G/H/J/L/M/N...ec-I/J/L/M/N..ed-G/I/J/L/M/N..ee-H/I/J/L/M/N..ef-G/H/I/J/L/M/N..f0-K/L/M/N
f1-G/K/L/M/N...f2-H/K/L/M/N..f3-G/H/K/L/M/N..f4-I/K/L/M/N..f5-G/I/K/L/M/N..f6-H/I/K/L/M/N..f7-G/H/I/K/L/M/N..f8-J/K/L/M/N
f9-G/J/K/L/M/N...fa-H/J/K/L/M/N..fb-G/H/J/K/L/M/N..fc-I/J/K/L/M/N..fd-G/I/J/K/L/M/N..fe-H/I/J/K/L/M/N..ff-G/H/I/J/K/L/M/N



******************************************************---X3---***********************************************************
*************************************************************************************************************************

________________________________________________-Damage Variables-_______________________________________________________
_________________________________________________________________________________________________________________________



(D): 33009:05---INT Adjustment Divisor [INT/32]
(C): 3391a:01---INT Contribution to Spell Damage
(P): 301f1:01---Spell Power
(I): -----------Intelligence Stat



---------------------------------------------------------------------------------------------------------------

D-05.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-01
.........P-.................P-.................P-.................P-.................P-.................
I-01.....01-2/4.............10-32/64...........40-128/256.........80-256/512.........FF-510/1020........
I-7F.....01-8/16............10-38/76...........40-134/268.........80-262/524.........FF-516/1026........
I-FF.....01-16/32...........10-46-92...........40-142/284.........80-270/540.........FF-524/1034........

---------------------------------------------------------------------------------------------------------------

D-05.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-10
.........P-.................P-.................P-.................P-.................P-................
I-10.....01-18/36...........10-48/96...........40-144/288.........80-272/544.........FF-526/1036.......
I-40-....01-66/132..........10-96/192..........40-192/384.........80-320/640.........FF-574/1084........
I-80.....01-130/260.........10-160/320.........40-256/512.........80-384/768.........FF-638/1148.......

---------------------------------------------------------------------------------------------------------------

D-05.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-40
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-66/132..........10-96/192..........40-192/384.........80-320/640.........FF-574/1084........
I-40.....01-258/516.........10-288/576.........40-384/768.........80-512/1022........FF-766/1276........
I-80.....01-514/1024........10-544/1054........40-640/1150........80-768/1278........FF-1022/1532.......

---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------

D-04.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-10
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-34/68...........10-64/128..........40-160/320.........80-288/576.........FF-542/1052........
I-40.....01-130/260.........10-160/320.........40-256/512.........80-384/768.........FF-638/1148........
I-80.....01-258/516.........10-288/576.........40-384/768.........80-512/1022........FF-766/1276........

---------------------------------------------------------------------------------------------------------------

D-04.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-40
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-130/260.........10-160/320.........40-256/512.........80-384/768.........FF-638/1148........
I-40.....01-514/1024........10-544/1054........40-640/1150........80-768/1278........FF-1022/1532.......
I-80.....01-1026/1536.......10-1056/1566.......40-1152/1662.......80-1280/1790.......FF-1534/2044.......

---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------

D-03.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-10
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-66/132..........10-96/192..........40-192/384.........80-320/640.........FF-574/1084........
I-40.....01-258/516.........10-288/576.........40-384/768.........80-512/1022........FF-766/1276........
I-80.....01-514/1024........10-544/1054........40-640/1150........80-768/1278........FF-1022/1532.......

---------------------------------------------------------------------------------------------------------------

D-03.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-40
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-258/516.........10-288/576.........40-384/768.........80-512/1022........FF-766/1276........
I-40.....01-1026/1536.......10-1056/1566.......40-1152/1662.......80-1280/1790.......FF-1534/2044.......
I-80.....01-2050/2560.......10-2080/2590.......40-2176/2686.......80-2304/2914.......FF-2558/3068.......

---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------

D-02.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-10
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-130/260.........10-160/320.........40-256/512.........80-384/768.........FF-638/1148........
I-40.....01-514/1024........10-544/1054........40-640/1150........80-768/1278........FF-1022/1532.......
I-80.....01-1026/1536.......10-1056/1566.......40-1152/1662.......80-1280/1790.......FF-1534/2044.......

---------------------------------------------------------------------------------------------------------------

D-02.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-40
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-514/1024........10-544/1054........40-640/1150........80-768/1278........FF-1022/1532.......
I-40.....01-2050/2560.......10-2080/2590.......40-2176/2686.......80-2304/2914.......FF-2558/3068.......
I-80.....01-4098/4608.......10-4128/4638.......40-4222/4732.......80-4350/4860.......FF-4604/5114.......

---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------

D-01.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-10
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-258/516.........10-288/576.........40-384/768.........80-512/1022........FF-766/1276........
I-40.....01-1026/1536.......10-1056/1566.......40-1152/1662.......80-1280/1790.......FF-1534/2044.......
I-80.....01-2050/2560.......10-2080/2590.......40-2176/2686.......80-2304/2914.......FF-2558/3068.......

---------------------------------------------------------------------------------------------------------------

D-01.....D-INT Adjustment Divisor...C-Int Contribution...P-Spell Power...I-Intelligence
C-40
.........P-.................P-.................P-.................P-.................P-.................
I-10.....01-1026/1536.......10-1056/1566.......40-1152/1662.......80-1280/1790.......FF-1534/2044.......
I-40.....01-4098/4608.......10-4128/4638.......40-4222/4732.......80-4350/4860.......FF-4604/5114.......
I-80.....01-8194/8704.......10-8224/8734.......40-8320/8830.......80-8448/8958.......FF-8702/9212.......

---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------



******************************************************---X4---***********************************************************
*************************************************************************************************************************

_________________________________________________-Hit % Variables-_______________________________________________________
_________________________________________________________________________________________________________________________



..........338c0:80---Base Spell Hit Chance: 128

..........Base Hit Chance variables

..........Base chance for a Spell to work is 128. If a (Death, Stone, Poison, ect) Status inflicting Spell has (0) for 
..........Hit%, it still has a good chance of working unless your Mdef is 128 or higher. Elemental Resisting Spells or
..........Armor offer 128 resistance points for that Element. These status inflictions can still occur at any time,
..........even when the odds are low with a high Mdef or resisting Spell or Armor.
 
..........After testing the odds and outcomes, here are the rough estimates of how often the Spell will work.  
..........Enemy Mdef was set at a0 (160) for testing. Enemy INT: Magdef/8. INT contribution to spell hit chance: INT/2.

..........8/160=20, 2/20=10. Based on the formula, my tests were done with the Enemy having 10 points raw chance to hit.
..........Enemies late in the game with a Death, Time, Stone, ect, Spell or Ability, would have an average of 160 Mdef.

..........Below in parenthesis... (Your Magic Defense)-(% chance of Spell working)

..........Spell Hit% 00 - (0-80%)..(32-70%)..(64-50%)..(100-30%)..(128-10%)..(160-5%)..(200-1%)..(255-.5%)
..........Spell Hit% 00 with Resisting Spell or Armor - (0-10%)..(32-3%)..(64-1%)..(128-.5%)..(255-.1%)

..........Spell Hit% 20 - (0-100%)..(32-90%)..(64-80%)..(100-40%)..(128-25%)..(160-10%)..(200-3%)..(255-1%)
..........Spell Hit% 20 with Resisting Spell or Armor - (0-25%)..(32-10%)..(64-3%)..(128-1%)..(255-.3%)

..........Spell Hit% 40 - (0-100%)..(64-80%)..(128-40%)..(160-20%)..(200-5%)..(255-1%)
..........Spell Hit% 40 with Resisting Spell or Armor - (0-40%)..(32-25%)..(64-10%)..(128-3%)..(200-1%)..(255-.5%)

..........Spell Hit% 80 - (128-80%)..(160-50%)..(200-25%)..(255-10%)
..........Spell Hit% 80 with Resisting Spell or Armor - (0-80%)..(32-50%)..(64-30%)..(128-10%)..(200-2%)..(255-1%)

..........Spell Hit% c0 - (160-80%)..(200-50%)..(255-25%)
..........Spell Hit% c0 with Resisting Spell or Armor - (64-80%)..(128-40%)..(200-25%)..(255-3%)











